/**
 * 
 */
package com.williamoneil.charts.client.data;

import java.util.Map;

import com.williamoneil.charts.client.util.ColorEntityType;

/**
 * @author gudipati
 *
 */
public class ColorThemeData  {

	private String name = null;
	private Map<Integer, String> colorMap = null;

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the colorMap
	 */
	public Map<Integer, String> getColorMap() {
		return colorMap;
	}

	/**
	 * @param colorMap the colorMap to set
	 */
	public void setColorMap(Map<Integer, String> colorMap) {
		this.colorMap = colorMap;
	} 
	
	public String getColor(ColorEntityType type) {
		return colorMap.get(type.getId());
	}
}
